
<%@ page import="givenchy.Logs" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'ip.label', default: 'Ip')}" />
        <title>日志管理</title>
    </head>
    <body>
        <div class="tasknav">
            <span class="menuButton"><g:link class="list" action="flushOther">我刷的站</g:link></span>
            <span class="menuButton"><g:link class="list" action="flushMe">谁刷的我</g:link></span>
        </div>
        <div class="body">
            <h1>我刷的站</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                        
                            <g:sortableColumn property="username" title="被刷人" />
                        
                            <g:sortableColumn property="taskname" title="被刷任务名" />
                        
                            <th>时间</th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${logsInstanceList}" status="i" var="logsInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                   
                            <td>${fieldValue(bean: logsInstance, field: "username")}</td>
                        
                            <td>${fieldValue(bean: logsInstance, field: "taskname")}</td>
                        
                            <td><g:formatDate date="${logsInstance.createTime}" format="yyyy-MM-dd HH:mm "/></td>
                                                
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${logsInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
